import request from '@/utils/request'

export function getList() {
  return request({
    url: '/api/express_config/kuaidi100',
    method: 'get'
  })
}
export function add(data) {
  return request({
    url: '/api/express_config/kuaidi100_add',
    method: 'post',
    data: {
      name: data.name,
      account: data.account,
      key: data.key,
      secret: data.secret,
      status: data.status
    }
  })
}
export function edit(data) {
  return request({
    url: '/api/express_config/kuaidi100_edit',
    method: 'post',
    data: {
      id: data.id,
      name: data.name,
      account: data.account,
      key: data.key,
      secret: data.secret,
      status: data.status
    }
  })
}
export function handDelete(data) {
  return request({
    url: '/api/express_config/kuaidi100_del',
    method: 'post',
    data: {
      id: data.id
    }
  })
}
